package com.fduss.artStore.dao;

import com.fduss.artStore.entity.Order;

import java.util.List;

/**
 * @Author duocai wu
 * @Date 2017/6/24
 * @Time 21:01
 */
public interface OrderDao {
    Order add(Order order);
    void delete(int orderId);
    Order getOne(int orderId);
    Order update(Order order);
    List<Order> getByCustomer(int customerId);
    List<Order> getAll();
    List<Order> getByStateAndCustomer(int customerId, int state);
}
